

cc.Class({
    extends: cc.Component,

    properties: {
        startBtnNode: cc.Node,
        roleBtnNode: cc.Node,
        gameIntroduceBtnNode: cc.Node,
    },



    onLoad() {
        this.rolePageViewNode = cc.find("Canvas/rolePageView");
        this.backgroundNode = cc.find("Canvas/background");
        this.gameIntroduceViewNode = cc.find("Canvas/gameIntroduceView");
        this.startBtnNode.on("click", this.onStartBtn, this);
        this.roleBtnNode.on("click", this.onRoleBtn, this);
        this.gameIntroduceBtnNode.on("click", this.onGameIntroduceBtn, this);

    },

    start() {

    },

    // update (dt) {},

    onStartBtn() {
        cc.director.loadScene("Game");
    },

    onRoleBtn() {
        this.rolePageViewNode.active = true;
        //this.backgroundNode.active = false;
    },

    onGameIntroduceBtn() {
        this.gameIntroduceViewNode.active = true;
        //this.backgroundNode.active = false;
    },
});
